package com.mall.b2c.bean;

import com.mall.b2c.domain.member.MemberDomain;

import java.util.Date;

/**
 * Created by Misun on 2017/2/26.
 */
public class FirendBean {
    private Long id;
    private String username;
    private Date registerDate;
    private String desc;


    public FirendBean(MemberDomain member, Integer type) {
        this.id = member.getId();
        this.username = member.getUsername();
        this.registerDate = member.getCreateDate();
        this.desc = type==1 ?"徒弟":"徒孙";
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
